package com.cxrj.zhsq.userManage.service;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface DirectoriesService {
	
	/**
	 * 分页查询部门对应通讯录
	 * @param request
	 * @param response
	 * @return
	 */
	Map<String,Object> selectDirectoriesPager(HttpServletRequest request, HttpServletResponse response);
	
	/**
	 * 添加及修改通讯录
	 * @param organizationId
	 * @param name
	 * @param tel
	 * @param id
	 */
	void insertDirectories(String organizationId,String name,String tel,String id);
	
	/**
	 * 根据主键id查询
	 * @param id
	 * @return
	 */
	Map<String, Object> selectDirectoriesById(String id);
	
	/**
	 * 删除
	 * @param id
	 */
	void deleteDirectories(String id );
	
	/**
	 * 根据部门对应通讯录
	 * @param request
	 * @param response
	 * @return
	 */
	Map<String,Object> selectDirectories(String id);
}
